import { createRouter, createWebHistory } from 'vue-router'

export default createRouter({
    history: createWebHistory(),
    routes: [
        { path: '/', name: 'mainpage', component: () => import('../views/MainPage.vue') },
        { path: '/new_meeting', name: 'new', component: () => import('../views/NewMeeting.vue') },
        { path: '/join_meeting', name: 'join', component: () => import('../views/JoinMeeting.vue') },
        { path: '/meeting/:id(\\d+)', name: 'meeting', component: () => import('../views/Meeting.vue') },
        { path: '/:pathMatch(.*)*', name: 'NotFound', component: () => import('../views/NotFound.vue') }
    ],
})